package com.asen.commons.core.meta.enums;

import com.asen.commons.core.base.IntegerEnum;

/**
 * 聚合函数
 *
 * @author ls
 * @version 1.0
 * @date 2024-04-09
 */
public enum AggrFuncEnum implements IntegerEnum {

    /**
     * 函数
     */
    COUNT(1, "COUNT"),

    SUM(2, "SUM"),

    AVG(3, "AVG"),

    MAX(4, "MAX"),

    MIN(5, "MIN");

    private Integer key;

    private String val;

    private AggrFuncEnum(Integer key, String val) {
        this.key = key;
        this.val = val;
    }

    @Override
    public Integer getValue() {
        return key;
    }

    @Override
    public String getDesc() {
        return val;
    }

}
